-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App watcher - Build extensions #4346
Conversation
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success1922 tests passing in 874 suites. Report generated by 🧪jest coverage report action from 7273aff |
packages/app/src/cli/services/dev/app-events/app-event-watcher.test.ts
Outdated
Show resolved
Hide resolved
packages/app/src/cli/services/dev/app-events/app-event-watcher.ts
Outdated
Show resolved
Hide resolved
This PR seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action. |
We detected some changes at packages/*/src and there are no updates in the .changeset. |
/snapit |
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Test the snapshot by intalling your package globally: pnpm i -g @shopify/cli@0.0.0-snapshot-20241024163114
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working like a charm, and the code looks nice 👌
WHY are these changes introduced?
App watcher now has the responsibility of building extensions when they change.
For extensions that use ESBuild, it handles that using using contexts.
Having a unified place for watching and building extensions during dev is very convenient, as the events from here can be used by the different processes running during
dev
:WHAT is this pull request doing?
UpdatedSource
event type for the watcher..shopify
directory by default.dev
flow to use this new feature.How to test your changes?
Having an app with different extensions (specially ui-extensions and functions):
pnpm shopify demo watcher --path <path_to_app>
.shopify/bundle
directory, you should see all the built extensions.Alternative: Having an org in app-management, run
dev
with the new API.Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
Checklist